/**
 * Created by will.jiang on 2017/9/28.
 */
import render  from './src/render';
var temp0 = require("./html/0.html");

//暴露方法到全局
window.i18n = {
    prop: function (key) {
        return 'language:' + key
    }
};
//扩展一个$sub 方法
Number.prototype.$sub = function (num) {
    return this - num;
};
window.$cur = "CNY ";
window.onload = function () {
    document.getElementById('app').innerHTML = render(temp0, {
        username: "will",
        cur: "CNY",
        depositBank: "银行",
        amountMap: {m1: 999},
        amount: 120,
        discount: 86
    })
};


